<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <!-- INTERFACE -->
    <cc:interface>
        <cc:attribute name="id" />
        <cc:attribute name="value" />
        <cc:attribute name="style" />
        <cc:attribute name="styleClass" />
        <cc:attribute name="paginator" default="true" />
        <cc:attribute name="paginatorPosition" default="bottom" />
        <cc:attribute name="selectionMode" default="single" />
        <cc:attribute name="selection" />
        <cc:attribute name="onselectComplete" />
        <cc:attribute name="emptyMessage" />
        <cc:attribute name="errorMessage" />
        <cc:attribute name="sortAscMessage" />
        <cc:attribute name="sortDescMessage" />
        <cc:attribute name="firstPageLinkLabel" />
        <cc:attribute name="lastPageLinkLabel" />
        <cc:attribute name="previousPageLinkLabel" />
        <cc:attribute name="nextPageLinkLabel" />
        <cc:attribute name="rows" default="10" />
        <cc:attribute name="update" />
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <!-- INICIO Tabela de pesquisa -->
        <c:set var="cid" value="#{cc.attrs.id}_datatable" />
        <c:set var="style" value="#{cc.attrs.style}" />
        <p:dataTable id="#{cid}"
                     style="#{style}"
                     styleClass="#{cc.attrs.styleClass}"
                     paginator="#{cc.attrs.paginator}"
                     paginatorPosition="#{cc.attrs.paginatorPosition}"
                     value="#{cc.attrs.value}" var="item"
                     selectionMode="#{cc.attrs.selectionMode}"
                     onselectComplete="#{cc.attrs.onselectComplete}" 
                     selection="#{cc.attrs.selection}" rows="#{cc.attrs.rows}"
                     emptyMessage="#{empty cc.attrs.emptyMessage ? msgs['item.noresult.buscar'] : cc.attrs.emptyMessage}"
                     update="#{empty cc.attrs.update ? '@this' : cc.attrs.update}" >
            <cc:insertChildren />
        </p:dataTable>

        <!-- FIM Tabela de pesquisa -->
    </cc:implementation>
</html>